//
//  TwoTableViewCell.m
//  BuffetNews
//
//  Created by weidawei on 14-10-30.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TwoTableViewCell.h"

@implementation TwoTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.label1 = [[UILabel alloc] init];
        [self.contentView addSubview:self.label1];
        [_label1 release];
        
        self.addbutton = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.addbutton];
        
        
    }
    return self;
}
- (void)dealloc
{
    [_label1 release];
    [_addbutton release];
    [super dealloc];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.label1.frame = CGRectMake(20, 0, self.contentView.frame.size.width - 100, self.contentView.frame.size.height);
    self.label1.textAlignment = NSTextAlignmentLeft;
    
    self.addbutton.frame = CGRectMake(self.contentView.frame.size.width - 35, 10, 26, 26);
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
